<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<body>
<h1>欢迎</h1>
<img src="1.png" width="50px" height="50px">
<button onclick="callAndroid()">调用android</button>
<button onclick="loadUrl()">跳转</button>
<button onclick="showAlert()">警告</button>
<button onclick="showConfirm()">确认</button>
<button onclick="showPrompt()">输入</button>
</body>
<script>
	function callJS(){
  		alert("Android调用js");
	 }

	 function callAndroid(){
	 	test.callAndroid("js调用android");
	 }

	 function loadUrl(){
	 	document.location = "js://webview?arg1=111&arg2=222";
	 }

	 function showAlert(){
  		alert("js://jumpActivityB?id=123");
	 }

	 function showConfirm(){
  		var res = confirm("请确认");
     	if(res == true){
       	  document.write("你点击了确认");
        }else{
       	  document.write("你点击了取消");
     	}
	 }

	 function showPrompt(){
  		var name = prompt("js://getName");
        if (name!=null && name!=""){
		    document.write("Hello " + name);
        }
	 }

</script>
</html>